import request from '@/utils/request'

// 获取数据看板页面数据
export const getSjkb = (layerType) => {
  return request({
    url: '/agri/bigScreen/sjkb/'+layerType,
    method: 'get'
  })
}

// 获取数据看板页面数据
export const getJsc = (layerType) => {
  return request({
    url: '/agri/bigScreen/jsc/'+layerType,
    method: 'get'
  })
}

// 获取挂图作战  作战任务（右侧区域）
export const getGuatuZzrw = (data) => {
  return request({
    url: '/agri/commGuatuTaskHandle/bigScreenzzrw',
    method: 'post',
    data: data
  })
}

// 获取挂图作战完成情况排名分析
export const getGuatuPmfx = (data) => {
  return request({
    url: '/agri/commGuatuTaskHandle/bigScreenpmfx',
    method: 'post',
    data: data
  })
}

// 获取挂图作战超时任务督办
export const getGuatuCsrw = (data) => {
  return request({
    url: '/agri/commGuatuTaskHandle/bigScreencsrw',
    method: 'post',
    data: data
  })
}

// 生产基地列表
export const getplantBaseList = (data) => {
  return request({
    url: '/agri/plantBase/list',
    method: 'get',
    params: data
  })
}

export const getWeatherInfoList = (data) => {
  return request({
    url: '/weather/weatherInfo/all',
    method: 'get',
    params: data
  })
}
